package com.uchedao.seller.ui.car.publish;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.view.KeyEvent;
import android.view.View;

import com.uchedao.seller.R;
import com.uchedao.seller.ui.car.base.BasePublishActivity;

public class PublishInviteActivity extends BasePublishActivity {

    @Override
    protected String getActivityTag() {
        return "PublishInviteActivity";
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_publish_invite;
    }

    @Override
    protected void initView() {
        initToBar("邀请买家");
        btnTopback.setVisibility(View.GONE);
    }

    @Override
    protected void initData() {
        new AlertDialog.Builder(this)
                .setTitle("正在邀请最有意向的买家")
                .setMessage("根据车型热门程度，以及买家采购意向计算，您发布的车辆在全国发现15个热销城市，共1200位潜在买家。")
                .setOnKeyListener(new DialogInterface.OnKeyListener() {
                    @Override
                    public boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
                        return true;
                    }
                })
                .setNegativeButton("好的", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        startActivity(new Intent(PublishInviteActivity.this, PublishShareActivity.class));
                        finish();
                    }
                })
                .show();
    }

    @Override
    protected void initListener() {

    }
}
